#include "Util/util.h"
#include "Explorer/explorer.h"
#include "Sync/sync.h"

int main()
{
	p_st_folder node1, node2;
#ifdef _WIN32
	char *uri1 = "D:/Projetos/testFolder";
	char *uri2 = "D:/Projetos/testFolder2";
#else
	char *uri1 = "/home/cesar/testFolder";
	char *uri2 = "/home/cesar/testFolder1";
#endif

	DebugPrint("teste");

	node1 = exploreFolder(uri1, NULL);
	node2 = exploreFolder(uri2, NULL);

	printContent(node1,0);
	printf("\n");
	printContent(node2,0);

	diffFolder(node1, node2);

	//printContent(node1, 0);
	//printf("\n");
	//printContent(node2, 0);

	syncFolders(node1, node2, uri1, uri2, SYNC_TO_2);

	freeContent(node1);
	freeContent(node2);

	return 0;
}
